package com.icexxx.db_column;

import cn.hutool.core.util.StrUtil;

public class StringUtil {

    public static String analysis(String name) {
        if (name == null) {
            return null;
        }
        String[] split = name.split("_");
        StringBuilder sb = new StringBuilder();
        for (String string : split) {
            if (StrUtil.isNotBlank(string)) {
                sb.append(string.charAt(0));
            }
        }
        return sb.toString();
    }

}
